package entity;

import java.util.Date;

import org.codehaus.jackson.annotate.JsonIgnore;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;

/**
 * Userinfo entity. @author MyEclipse Persistence Tools
 */
@JsonIgnoreProperties({"hibernateLazyInitializer","handler","user"})
public class Userinfo implements java.io.Serializable {

	// Fields

	private Integer id;
	private Province province;
	private City city;
	private User user;
	private String sex;
	private String name;
	private Date birthday;
	private String tel;
	private String mobile;
	private String address;
	private String weChat;
	private String qq;
	private String email;

	// Constructors

	/** default constructor */
	public Userinfo() {
	}

	/** minimal constructor */
	public Userinfo(Integer id, User user) {
		this.id = id;
		this.user = user;
	}

	/** full constructor */
	public Userinfo(Integer id, Province province, City city, User user,
			String sex, String name, String tel, String mobile, String address,
			String qq, String email) {
		this.id = id;
		this.province = province;
		this.city = city;
		this.user = user;
		this.sex = sex;
		this.name = name;
		this.tel = tel;
		this.mobile = mobile;
		this.address = address;
		this.qq = qq;
		this.email = email;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Province getProvince() {
		return this.province;
	}

	public void setProvince(Province province) {
		this.province = province;
	}

	public City getCity() {
		return this.city;
	}

	public void setCity(City city) {
		this.city = city;
	}
	@JsonIgnore
	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getTel() {
		return this.tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getMobile() {
		return this.mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getQq() {
		return this.qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	public String getWeChat() {
		return weChat;
	}

	public void setWeChat(String weChat) {
		this.weChat = weChat;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

}